import Layout from "@/layout";
import emptyLayout from "@/layout/emptyRouter.vue";

export default {
    path: "/content",
    meta: {
        title: "内容管理",
        roles: ["content"],
        icon: "el-icon-s-management"
    },
    component: Layout,
    redirect: "/content",
    name: "content",
    children: [
        {
            path: "exam-calendar",
            meta: {
                title: "考试日历",
                roles: ["content:examCalendar"],
                icon:"el-icon-date"

            },
            component: () => import("@/views/models/content/examCalendar/index.vue"),
            name: "ExamCalendar"
        },

        {
            path: "advertisementBase",
            meta: {
                title: "广告管理",
                roles: ["content:advertisement"],
                icon:"el-icon-video-camera"
            },
            component: emptyLayout,
            children: [
                {
                    path: "advertisement",
                    meta: {
                        title: "广告位",
                        roles: ["content:advertisement:position"],
                        icon:"el-icon-folder-opened"

                    },
                    component: () =>
                        import("@/views/models/content/advertisement/position/index.vue"),
                    name: "advertisementPositionSetting"
                },
                {
                    path: "advertisementList",
                    meta: {
                        title: "广告列表",
                        roles: ["content:advertisement:list"],
                        icon:"el-icon-tickets"
                    },
                    component: () =>
                        import("@/views/models/content/advertisement/list/index.vue"),
                    name: "advertisementListSetting"
                },
                {
                    path: "advertisementAdd",
                    meta: {
                        title: "广告编辑",
                        roles: ["content:advertisement:add"],
                        icon:"el-icon-edit-outline"
                    },
                    name: "advertisementAddSetting",
                    component: () =>
                        import("@/views/models/content/advertisement/add.vue"),
                    hidden: true
                }]

        },
        {
            path: "materialInfoBase",
            meta: {
                title: "资讯资料管理",
                roles: ["content:materialInfoBase"],
                noCache: false,
                icon:"el-icon-document-copy"
            },
            name: "materialInfoBaseSetting",
            component: () =>
                import("@/views/models/content/materialInfoBase/index.vue")
        },
        {
            path: "materialInfoAdd",
            meta: {
                title: "资讯资料编辑",
                roles: ["content:materialInfoAdd"],
                noCache: false
            },
            name: "materialInfoAddSetting",
            component: () =>
                // import("@/views/models/materialInfo/materialInfoColumn/index.vue")
                import("@/views/models/content/materialInfoBase/add.vue"),
            hidden: true
        },
        {
            path: "informationAdd",
            meta: {
                title: "资料编辑",
                roles: ["content:informationAdd"],
                noCache: false
            },
            name: "informationAddSetting",
            component: () =>
                // import("@/views/models/materialInfo/materialInfoColumn/index.vue")
                import("@/views/models/content/materialInfoBase/materialInfoadd.vue"),
            hidden: true
        },
        {
            path: "agentNoticeBase",
            meta: {
                title: "代理商公告管理",
                roles: ["content:agentNoticeBase"],
                noCache: false,
                icon: "el-icon-s-data"
            },
            name: "agentNoticeSetting",
            component: () =>
                import("@/views/models/content/agentNotice/index.vue"),
        },
        {
            path: "weixin",
            name: "weixin",
            meta: {
                title: "微信二维码",
                noCache: true
            },
            component: () => import("@/views/qrcodeManage.vue"),
            hidden: false,
            roles: ["content:weixin"],
            icon: "el-icon-s-platform",

        },
    ]
};
